package cn.xiaobai.springswagger.contorller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author yangdaji
 * @Date 2023-09-19
 * @PackageName cn.xiaobai.springswagger.demo
 * @ClassName TestController
 */
@Api(value = "api-测试接口", tags = "测试")
@RestController("/api-test")
public class TestController {


    @ApiOperation("获取测试信息")
    @RequestMapping(value = "/getStr", method = RequestMethod.GET)
    public String getStr() {
        return "success";
    }
}
